import React from "react";
import "./index.css"
import Item from "./ltem";
export default function List({todoList}){
return(
       <ul className="todo-main">
        {
            todoList.map(item =>{
                return <Item key={item.id} {...item}/>
            })
        }

       </ul>
    )
}